/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package FileSystem;

import java.io.File;
import java.io.IOException;

/**
 *
 * @author asfeor
 */
interface Create
{
	boolean createFile (String src, String name); 
	boolean createDirectory (String src, String name); 
}
public class Creating implements Create {

    @Override
    public boolean createFile(String src, String name) {
      try { File f=new File(src+File.separator+name);
       return f.createNewFile();   
      }  catch(IOException ex) {return false;}
    }

    @Override
    public boolean createDirectory(String src, String name) {
        try{ File f=new File(src+File.separator+name);
        return f.mkdir();
            
        }catch(SecurityException ex) {return false;}
    }
    
}
